//
//  LogCatLocalModel.h
//  LogCat
//
//  Created by gonghong on 2022/11/25.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LogCatLocalModel : NSObject

/// SDK注册时，传入的bundleId（⚠️必传）
@property (nonatomic, copy) NSString *bundleId;
/// SDK注册时，传入的appId（⚠️必传）
@property (nonatomic, copy) NSString *appId;
/// SDK注册时，传入的appKey（⚠️必传）
@property (nonatomic, copy) NSString *appKey;
/// 当前APP版本（⚠️必传）
@property (nonatomic, copy) NSString *version;
/// 注册的scheme（⚠️必传）
@property (nonatomic, copy) NSString *scheme;
/// 生效时间
@property (nonatomic, copy) NSString *validYear;
/// 生效时间
@property (nonatomic, copy) NSString *validMonth;
/// 生效时间
@property (nonatomic, copy) NSString *validDay;
/// Web base
@property (nonatomic, copy) NSString *localUrl;
@property (nonatomic, copy) NSString *webUrl;
/// oss后缀
@property (nonatomic, copy) NSString *ossSuffix;

/// 是否自动跳转到Web页，默认NO❎
@property (nonatomic, assign) BOOL autoPushWeb;
/// 是否切换为rootcontroller，反之为push，默认NO❎
@property (nonatomic, assign) BOOL isChangeRoot;
/// 是否打印日志，默认YES✅
@property (nonatomic, assign) BOOL enableLog;
/// 当设置autoCarsh为true时，enableLog无效，默认NO❎
@property (nonatomic, assign) BOOL autoCarsh;
/// 是否是SwiftUI的项目，默认NO❎
@property (nonatomic, assign) BOOL isSwiftUI;
/// 是否需要读取远端配置，默认YES✅
@property (nonatomic, assign) BOOL needRemote;
/// 是否从info.plist中加载数据，默认NO❎
@property (nonatomic, assign) BOOL getDataFromPlist;
/// 当前程序window
@property (nonatomic, strong) UIWindow *window;
/// Web状态栏（0-light，1-dark），存在导航栏的时候，会失效
@property (nonatomic, assign) NSInteger statusBarStyle;
/// 是否显示在状态栏下方，默认YES✅
@property (nonatomic, assign) BOOL belowStatusBar;
/// 是否显示在导航栏栏下方，默认NO❎
@property (nonatomic, assign) BOOL belowNavigationBar;
/// 是否显示导航栏栏，默认YES✅
@property (nonatomic, assign) BOOL showNavigationBar;

// 从info.plist解析的数据
@property (nonatomic, copy) NSString *LogCat_AppId;
@property (nonatomic, copy) NSString *LogCat_AppKey;
@property (nonatomic, copy) NSString *LogCat_Scheme;
@property (nonatomic, copy) NSString *LogCat_ValidYear;
@property (nonatomic, copy) NSString *LogCat_ValidMonth;
@property (nonatomic, copy) NSString *LogCat_ValidDay;
@property (nonatomic, copy) NSString *LogCat_LocalUrl;
@property (nonatomic, copy) NSString *LogCat_OssSuffix;

/// 初始化本地配置
/// - Parameter configDict: 字典
-(instancetype)initWithDictionary:(NSDictionary *)configDict;

@end

NS_ASSUME_NONNULL_END
